﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CPlase
{
    public static class Extensions
    {
        public static string Serialize(this Object Obj, bool Zip = false)
        {
            return Zip ? BlobUtils.ZipSerialize(Obj) : BlobUtils.Serialize(Obj);
        }

        public static T Deserialize<T>(this string StringSerialized)
        {
            return BlobUtils.Deserialize<T>(StringSerialized);
        }
    }
}